<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>购物车-网演中国粤西平台</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=9,Chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link rel="stylesheet" type="text/css" href="css/public.css">
<link rel="stylesheet" type="text/css" href="css/cart.css">
<script type="text/javascript" src="js/clientwidth.js"></script>
<!---商品加减算总数---->
			<script type="text/javascript">
			$(function () {				
				//单价
				var price = 10
				//每项商品的小计
				var t = parseInt($(".text_box").text());
				
				$(".add").click(function () {
					t++;
					$(".text_box").text(t)
					setTotal(); GetCount();
				})
				$(".min").click(function () {
					if(t>1){
						t--;
						$(".text_box").text(t)
						setTotal(); GetCount();
					}else{
						alert("商品最小数量为1")
						t=1;
						$(".text_box").text(t)
						setTotal(); GetCount();
					}
				})
				function setTotal() {
					$(".total1").html(price.toFixed(2));
					$(".newslist-1").val(t * price);
				}
				setTotal();
			})
			</script>
</head>
<body>
<div id="cartwarp">
	<div class="cart-item">
		<div class="cart-top">
			<div class="cart_store">网演中国</div>
			<div class="cart_set">删除</div>
		</div>
		<div class="cart-main">
			<div class="cart_choice"><input id="Checkbox1" type="checkbox" class="allselect"/></div>
			<div class="cart_img"><img src="images/nothumb.jpg"></div>
			<div class="cart_box">
				<div class="cart_title">网演中国粤剧交易网演中国粤剧交易网演中国粤剧交易网演中国粤剧交易</div>
				<div class="cart_text">演出时间：2017-05-28</div>
				<div class="cart_amount">
					<div class="cart_price"><em>&yen;10000</em></div>
					<div class="cart_num">
						<input class="min" name="" type="button" value="-" />
						<span class="text_box">1</span>
						<input class="add" name="" type="button" value="+" />
					</div>
				</div>				
			</div>
		</div>
	</div>
	<div class="cart-item">
		<div class="cart-top">
			<div class="cart_store">网演中国</div>
			<div class="cart_set">删除</div>
		</div>
		<div class="cart-main">
			<div class="cart_choice"><input id="Checkbox1" type="checkbox" class="allselect"/></div>
			<div class="cart_img"><img src="images/nothumb.jpg"></div>
			<div class="cart_box">
				<div class="cart_title">网演中国粤剧交易网演中国粤剧交易网演中国粤剧交易网演中国粤剧交易</div>
				<div class="cart_text">演出时间：2017-05-28</div>
				<div class="cart_amount">
					<div class="cart_price"><em>&yen;10000</em></div>
					<div class="cart_num">
						<input class="min" name="" type="button" value="-" />
						<span class="text_box">1</span>
						<input class="add" name="" type="button" value="+" />
					</div>
				</div>				
			</div>
		</div>
	</div>
	<div class="cart-item">
		<div class="cart-top">
			<div class="cart_store">网演中国</div>
			<div class="cart_set">删除</div>
		</div>
		<div class="cart-main">
			<div class="cart_choice"><input id="Checkbox1" type="checkbox" class="allselect"/></div>
			<div class="cart_img"><img src="images/nothumb.jpg"></div>
			<div class="cart_box">
				<div class="cart_title">网演中国粤剧交易网演中国粤剧交易网演中国粤剧交易网演中国粤剧交易</div>
				<div class="cart_text">演出时间：2017-05-28</div>
				<div class="cart_amount">
					<div class="cart_price"><em>&yen;10000</em></div>
					<div class="cart_num">
						<input class="min" name="" type="button" value="-" />
						<span class="text_box">1</span>
						<input class="add" name="" type="button" value="+" />
					</div>
				</div>				
			</div>
		</div>
	</div>
	<div class="cart-item">
		<div class="cart-top">
			<div class="cart_store">网演中国</div>
			<div class="cart_set">删除</div>
		</div>
		<div class="cart-main">
			<div class="cart_choice"><input id="Checkbox1" type="checkbox" class="allselect"/></div>
			<div class="cart_img"><img src="images/nothumb.jpg"></div>
			<div class="cart_box">
				<div class="cart_title">网演中国粤剧交易网演中国粤剧交易网演中国粤剧交易网演中国粤剧交易</div>
				<div class="cart_text">演出时间：2017-05-28</div>
				<div class="cart_amount">
					<div class="cart_price"><em>&yen;10000</em></div>
					<div class="cart_num">
						<input class="min" name="" type="button" value="-" />
						<span class="text_box">1</span>
						<input class="add" name="" type="button" value="+" />
					</div>
				</div>				
			</div>
		</div>
	</div>
	<div class="cart-item">
		<div class="cart-top">
			<div class="cart_store">网演中国</div>
			<div class="cart_set">删除</div>
		</div>
		<div class="cart-main">
			<div class="cart_choice"><input id="Checkbox1" type="checkbox" class="allselect"/></div>
			<div class="cart_img"><img src="images/nothumb.jpg"></div>
			<div class="cart_box">
				<div class="cart_title">网演中国粤剧交易网演中国粤剧交易网演中国粤剧交易网演中国粤剧交易</div>
				<div class="cart_text">演出时间：2017-05-28</div>
				<div class="cart_amount">
					<div class="cart_price"><em>&yen;10000</em></div>
					<div class="cart_num">
						<input class="min" name="" type="button" value="-" />
						<span class="text_box">1</span>
						<input class="add" name="" type="button" value="+" />
					</div>
				</div>				
			</div>
		</div>
	</div>
	<div class="cart-item">
		<div class="cart-top">
			<div class="cart_store">网演中国</div>
			<div class="cart_set">删除</div>
		</div>
		<div class="cart-main">
			<div class="cart_choice"><input id="Checkbox1" type="checkbox" class="allselect"/></div>
			<div class="cart_img"><img src="images/nothumb.jpg"></div>
			<div class="cart_box">
				<div class="cart_title">网演中国粤剧交易网演中国粤剧交易网演中国粤剧交易网演中国粤剧交易</div>
				<div class="cart_text">演出时间：2017-05-28</div>
				<div class="cart_amount">
					<div class="cart_price"><em>&yen;10000</em></div>
					<div class="cart_num">
						<input class="min" name="" type="button" value="-" />
						<span class="text_box">1</span>
						<input class="add" name="" type="button" value="+" />
					</div>
				</div>				
			</div>
		</div>
	</div>
</div>

<div id="bottom" style="height:40px;"></div>

<div id="accounts">
	<div class="setall">
		<input id="Checkbox1" type="checkbox" class="allselect"/>
		<span>全选</span>
	</div>
	<div class="totalamount">
		<div class="total"><span>总计：</span><i>&yen;10000.00</i></div>
		<div class="freight">(不含运费，已优惠&yen;0.00)</div>
	</div>
	<div class="gotopay">去结算<em>(2件)</em></div>
</div>
<footer id="bar-fixed">
	<a href="index.php" class="tab-item"><i class="icon-tabbar bar-home"></i>首页</a>
	<a href="category.php" class="tab-item active"><i class="icon-tabbar bar-message2"></i>分类</a>
	<a href="publish/" class="tab-item"><i class="icon-tabbar bar-publish"></i>发布</a>	
	<a href="user/" class="tab-item"><i class="icon-tabbar bar-user"></i>我</a>
</footer>
<script>
if (document.body.clientWidth > 640) {
	$('body').css({
		width: 640,
		margin: '0 auto',
	});
}
</script>
</body>
</html>